package cn.okuribito.model;

import java.io.Serializable;

public class JsonResult implements Serializable {
    private static final long serialVersionUID = 1L;
    private String status = "ok";
    private String errormessage = "";
    private Object result;

    public String getStatus() {
        return this.status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getErrormessage() {
        return this.errormessage;
    }

    public void setErrormessage(String errormessage) {
        this.errormessage = errormessage;
    }

    public Object getResult() {
        return this.result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public JsonResult() {
    }

    public JsonResult(Object result) {
        this.result = result;
    }

    public JsonResult(String status, String errormessage, Object result) {
        this.status = status;
        this.errormessage = errormessage;
        this.result = result;
    }

    public String toString() {
        return "JsonResult [status=" + this.status + ", errormessage=" + this.errormessage + ", result=" + this.result + "]";
    }
}
